package com.ck.constant;

/**
 * 操作类型
 *
 * @author linqiang
 * @date 2018-09-03 16:25
 */
public enum OperationType {

    ENABLE_ROLE("启用角色", 0),
    DISABLE_ROLE("禁用角色", 1),

    ENABLE_USER("启用用户", 0),
    DISABLE_USER("禁用用户", 1),

    ENABLE_DEPARTMENT("启用部门", 0),
    DISABLE_DEPARTMENT("禁用部门", 1);

    private String name;
    private Integer value;

    private OperationType(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
